﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="SZSLSystem.Web.Admin.DataDictionary.Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加数据字典</title>
    <link rel="stylesheet" type="text/css" href="../Images/style.css" />
    <script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../Js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../Js/messages_cn.js"></script>
    <script type="text/javascript" src="../Js/function.js"></script>
    <script type="text/javascript">
        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href="List.aspx">返回数据字典列表</a></span><b>您当前的位置：首页 &gt; 数据字典管理 &gt;
            增加数据字典</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                添加数据字典
            </th>
        </tr>
        <tr>
            <td width="100" align="right">
                所属上级类别：
            </td>
            <td width="100">
                <asp:Label ID="lblPid" runat="server" Text="de559f9d-4b33-4870-829e-162a2a846596"
                    Visible="False"></asp:Label><asp:Label ID="lblPname" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                名称：
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" CssClass="input required" size="30" MaxLength="50"
                    MinLength="1" HintTitle="名称" HintInfo="请填写名称，至少1个字符，小于50个字符。" Height="20px"></asp:TextBox>
            </td>
        </tr>        
        <tr>
            <td width="100" align="right">
                代码：
            </td>
            <td>
                <asp:TextBox ID="txtDataCode" runat="server" CssClass="input required" size="30" MaxLength="50"
                    MinLength="1" HintTitle="代码" HintInfo="请填写代码，至少1个字符，小于50个字符。" Height="20px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                描述：
            </td>
            <td>
                <asp:TextBox ID="txtDescription" CssClass="input" size="10" runat="server" MaxLength="500"
                    HintTitle="描述" HintInfo="请输入描述，字数控制在500字以内！" Height="120px" TextMode="MultiLine"
                    Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                排序：
            </td>
            <td>
                <asp:TextBox ID="txtSortId" CssClass="input required number" size="10" runat="server"
                    MaxLength="9" HintTitle="排序" HintInfo="纯数字，数字越少越向前。" Height="20px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
        &nbsp;&nbsp;
        <input type="reset" name="button" id="btnReset" value="重 置" class="submit" />
    </div>
    </form>
</body>
</html>
